package com.choosefine.it.team.dao;

import java.util.Map;
import com.choosefine.it.team.model.TeamFindProjectInfo;
import com.github.pagehelper.Page;

public interface TeamFindProjectInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(TeamFindProjectInfo record);
    /**
     * 根据id查看该条记录的详细
     * @author panqianqin
     * @param id
     * @return
     */
    TeamFindProjectInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TeamFindProjectInfo record);

    /**
     * 根据userid来查找这个用户发布找项目的信息列表
     * @param
     * @return
     */
    // update by juchengyang 2017/2/25
    Page<TeamFindProjectInfo> selectByUserId(Map<String, Object> map);
    /**
     * 修改找项目的发布状态
     */
    int updateFindProjectPublishstatusByID(Map<String, Object> params);
    /**
     * 软删除某条找项目信息
     */
    int updateIsvalidStatus(Map<String, Object> params);
    /**
     * 根据审核的状态加载所有班组用户的发布求项目列表
     */
    Page<TeamFindProjectInfo> selectByVerifyStatus();
    
    int updateFindProjectVerifyStatus(Map<String, Object> params);
    
    Page<TeamFindProjectInfo> selectFindProjectInfoByCondition(Map<String, Object> params);
    
    int deleteFindProject(Map<String, Object> params);

}